package com.example.blew.omp.system.service;

import com.example.blew.omp.system.model.form.FileForm;
import org.springframework.web.multipart.MultipartFile;

import java.io.InputStream;
import java.util.List;

public interface FileService {

    /***
     * 上传文件
     *
     * @param file
     * @param fileName
     * @return
     */
    String upload(MultipartFile file , String fileName);

    /***
     * 上传文件
     *
     * @param inputStream
     * @param fileName
     * @return
     */
    String upload(InputStream inputStream , String fileName);

    boolean save(FileForm fileForm);

    boolean save(List<FileForm> fileForms);



}
